package com.lee.decorator;

/**
 * 功能描述:
 *
 * @author liping(lpaidd50@gmail.com)
 * @version v1.0
 * @date 2017/3/24
 */
public class Decorator implements Sourceable {
	private Sourceable sourceable;

	public Decorator(Sourceable sourceable) {
		super();
		this.sourceable = sourceable;
	}

	public void method() {
		System.out.println("start");
		sourceable.method();
		System.out.println("end");
	}
}
